<table>
  <tr>
    <th width="20%" align="left"><%= get_sort_link "Title", "title" %></th>
    <th width="15%" align="left"><%= get_sort_link "Client","client" %></th>
    <th width="35%" align="left"><%= get_sort_link "Description", "description" %></th>
    <th width="15%" align="left"><%= get_sort_link "Ticket", "ticketNumber" %></th>
    <th width="15%" align="left"></td>
  </tr>
<% for event in @events %>
  <tr><td colspan="5" height="0"><hr></td></tr>
  <tr>
    <td><%=h event.title %></td>
    <td><%=h event.client %></td>
    <td><%=h event.description %></td>
    <td><%=h event.ticketNumber %></td>
    <td>
      <%= link_to image_tag( "clock.png", :border => 0 ), new_trace_path(:event_id => event.id) %>
      <%= link_to image_tag( "info.png", :border => 0 ), event %>
      <%= link_to image_tag( "edit.png", :border => 0 ), edit_event_path(event) %>
      <%= link_to image_tag( "trash.png", :border => 0 ), event, :confirm => 'Are you sure?', :method => :delete %>
      <%= link_to image_tag( "reports.png", :border => 0 ), :action => :byevent, :controller => :reports, :params => {:event_id => event.id} %>
</td>
  </tr>
<% end %>
</table>
